package com.bingxue.edu.management.education.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 创建或修改教室信息
 *
 * @author panbo
 * @since 2024/07/17 19:02
 */
@Data
@Schema(description = "创建或修改教室信息")
public class ClassroomReq {

    @Schema(description = "校区")
    @NotBlank(message = "校区不能为空")
    @Length(max = 32, message = "校区长度不能超过 {max} 个字符")
    private String campusId;

    @Schema(description = "名称")
    @NotBlank(message = "名称不能为空")
    @Length(max = 64, message = "名称长度不能超过 {max} 个字符")
    private String name;

    @Schema(description = "容纳人数")
    @NotNull(message = "容纳人数不能为空")
    private Integer capacity;

    @Schema(description = "面积")
    private Integer area;

    @Schema(description = "备注")
    @Length(max = 255, message = "备注长度不能超过 {max} 个字符")
    private String remark;
}
